package ZMJ;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class xiugai1 extends JFrame implements ActionListener {
	JButton b1;
	JLabel jl1;
	JPanel p1, p2;

	xiugai1() {
		super("修改成功");
		b1 = new JButton("确定");
		b1.addActionListener(this);
		jl1 = new JLabel("修改成功");
		p1 = new JPanel();
		p2 = new JPanel();
		p1.add(jl1);
		p2.add(b1);
		this.add(p1, BorderLayout.CENTER);
		this.add(p2, BorderLayout.SOUTH);

		// this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setVisible(true);
		this.setSize(150, 150);

	}

	// public static void main(String[] args) {
	// // TODO Auto-generated method stub
	// new xiugai1();
	// }

	@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == b1) {
			dispose();
			new danci();
		}

	}

}
